<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<div class="row">
    <div class="box col-md-12">
        <div class="box-inner">
            <div class="box-header well" data-original-title="">
                <h2><i class="glyphicon glyphicon-edit"></i> Add Exam</h2>

                <div class="box-icon">
                    <a href="#" class="btn btn-setting btn-round btn-default"><i
                            class="glyphicon glyphicon-cog"></i></a>
                    <a href="#" class="btn btn-minimize btn-round btn-default"><i
                            class="glyphicon glyphicon-chevron-up"></i></a>
                    <a href="#" class="btn btn-close btn-round btn-default"><i
                            class="glyphicon glyphicon-remove"></i></a>
                </div>
            </div>
            <div class="box-content">
                <form role="form" action="AddExamAction.do" method="post">


                    <div class="form-group">
                        <label for="exampleInputEmail1">Exam Name</label>
                        <input type="text" name="name" class="form-control" id="exampleInputEmail1" placeholder="Enter Exam Name" >
                    </div>
                    <div class="form-group">

                        <label>Start Date</label>

                        <div>
                            Day
                            <select name="sday">
                                <c:forEach var="i" begin="1" end="31">
                                    <option>      <c:out value="${i}"/></option>
                                </c:forEach>

                            </select>
                            Month

                            <select name="smonth">
                                <c:forEach var="i" begin="1" end="12">
                                    <option>      <c:out value="${i}"/></option>
                                </c:forEach>

                            </select>
                            Year
                            <select name="syear">
                                <c:forEach var="i" begin="1990" end="2020">
                                    <option>      <c:out value="${i}"/></option>
                                </c:forEach>

                            </select>
                        </div>
                    </div>

                    <div class="form-group">

                        <label>End Date</label>

                        <div>
                            Day
                            <select name="eday">
                                <c:forEach var="i" begin="1" end="31">
                                    <option>      <c:out value="${i}"/></option>
                                </c:forEach>

                            </select>
                            Month

                            <select name="emonth">
                                <c:forEach var="i" begin="1" end="12">
                                    <option>      <c:out value="${i}"/></option>
                                </c:forEach>

                            </select>
                            Year
                            <select name="eyear">
                                <c:forEach var="i" begin="1990" end="2020">
                                    <option>      <c:out value="${i}"/></option>
                                </c:forEach>

                            </select>
                        </div>
                    </div>

                    <div class="form-group">
                        <label for="exampleInputEmail1">Branch</label>
                        <select name="branch">
                            <c:forEach var="branch" items="${applicationScope.allbranches}">
                                <option value="${branch.id}">${branch.name}</option>
                            </c:forEach>

                        </select>
                    </div>


                    <div class="form-group">
                        <label for="exampleInputEmail1">Semester</label>
                        <select name="semester">
                            <c:forEach var="i" begin="1" end="8">
                                <option>      <c:out value="${i}"/></option>
                            </c:forEach>

                        </select>
                    </div>


                    <div class="form-group">
                        <button type="submit" class="btn btn-default">Submit</button>
                </form>


            </div>
        </div>
        <!--/span-->

    </div><!--/row-->

    <!-- content ends -->
</div><!--/#content.col-md-0-->
</div>